<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js</title>
</head>
<body>
	<h1 info='linux is very much!' id='hid' class='hcls'>kkkkkkkkkkkkkk</h1>
</body>
<script>
	
	
	hidobj=document.getElementById('hid');

	//获取标签名
	alert(hidobj.tagName); //结果H1
	
</script>
</html>